package com.training1.core.modules.dao;

import java.util.List;
import java.util.Map;

import com.training1.core.common.dao.CrudDao;
import com.training1.core.common.dao.annotation.MyBatisDao;
import com.training1.core.entity.FirContractEntity;
import com.training1.core.entity.FirSecContractExeEntity;
import com.training1.core.entity.PaymentEntity;

@MyBatisDao
public interface FirSecContractExeDao extends CrudDao<FirSecContractExeEntity> {

	/**
	 * 查询一审合同详情
	 */
	public FirSecContractExeEntity findFirContractById(Map<String, Object> param);

	/**
	 * 查询二审合同详情
	 */
	public FirSecContractExeEntity findSecContractById(Map<String, Object> param);

	/**
	 * 一审拒绝后 更新合同
	 */
	public void updateContractRefuse(Map<String, Object> param);

	/**
	 * 一审同意后 更新合同
	 */
	public void updateContractAgree(Map<String, Object> param);

	/**
	 * 二审拒绝后 更新合同
	 */
	public void updateSecContractRefuse(Map<String, Object> param);

	/**
	 * 二审同意后 更新合同
	 */
	public void updateSecContractAgree(Map<String, Object> param);
	/**
	 * 根据id 查询合同
	 * @param param
	 */
	public FirSecContractExeEntity findContractById(Map<String, Object> param);
}
